mtk-mmc: replace empty body macros
authorMieczyslaw Nalewaj <[email protected]>
Sun, 18 May 2025 09:30:18 +0000 (11:30 +0200)
committerHauke Mehrtens <[email protected]>
Wed, 11 Jun 2025 12:16:21 +0000 (14:16 +0200)
commit92fec1ff24c526895dc954b69bef05dee5ff812a
tree3ed6cbec090274932294adf0fd57b932a8180721
parenta48ff83193311acf5ce0d31fe058eeb910d911ef
mtk-mmc: replace empty body macros

Replace macros with empty body with 'do {} while (0)'.
Remove unnecessary semicolons.

Fixes:
drivers/mmc/host/mtk-mmc/sd.c: In function 'msdc_irq':
drivers/mmc/host/mtk-mmc/sd.c:1969:87: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body]
 1969 |                                 IRQ_MSG("XXX CMD<%d> MSDC_INT_RSPCRCERR", cmd->opcode);
      |                                                                                       ^
drivers/mmc/host/mtk-mmc/sd.c:1975:84: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body]
 1975 |                                 IRQ_MSG("XXX CMD<%d> MSDC_INT_CMDTMO", cmd->opcode);
      |                                                                                    ^
cc1: all warnings being treated as errors

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18654
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/ramips/files/drivers/mmc/host/mtk-mmc/dbg.h